package br.com.sebrae.pr.sgp.services.impl;

import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManagementType;

import br.com.sebrae.pr.sgp.dao.HelloWorldDAO;
import br.com.sebrae.pr.sgp.entities.World;
import br.com.sebrae.pr.sgp.services.HelloWorldServiceRemote;

/**
 * Session Bean implementation class HelloWorldServiceImpl
 */
@Stateless
@TransactionManagement(value = TransactionManagementType.CONTAINER)
@TransactionAttribute(TransactionAttributeType.SUPPORTS)
public class HelloWorldServiceImpl implements HelloWorldServiceRemote {

    @EJB
    private HelloWorldDAO helloWorldDAO;

    public HelloWorldServiceImpl() {
    }

    public World findWorldById(final long worldId) {
    	return new World();
//        return helloWorldDAO.findWorldById(worldId);
    }
}
